<?php

class PasswordModel extends myAcicrud {

    public function __construct($table = null, $database = null) {
        parent::__construct('password');
    }

    public function check_password($pass) {
        $query = $this->db->get_where('password', array('password' => hash('sha1', $pass)));
        if ($query->num_rows() == 1) {
            return true;
        }
        return false;
    }

}

?>
